package org.ch03.test07;

import java.util.Arrays;

/**
 * @author ZJL
 * @date 2025-03-27
 */
public class MainTest02 {
    public static void main(String[] args) {
        String[] arr = {"AA", "BB", "CC"};

        // 删除数组的下标
        int index = 0;

        // 实现数组元素的删除
        System.arraycopy(arr, index + 1, arr, index, arr.length-index-1);
        arr[arr.length-index-1] = null;
        System.out.println(Arrays.toString(arr));
    }
}
